package com.sian.security.web.controllers;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestParam;

@Controller("ErrorController")
@RequestMapping("/error")
public class ErrorController
{
	@RequestMapping(method = RequestMethod.GET)
	public String getDeniedPage(@RequestParam(value="code")Integer code)
	{
		return "/error/" + code;
	}
}
